package com.jvm.monitor.monitor_tuning.controller;

import com.jvm.monitor.monitor_tuning.pojo.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by fangjicai on 2020/4/26.
 */
@RestController
public class OomController {
    private static final List list =new ArrayList<User>();
    @GetMapping("/oom")
    public void oom(){
        int i=0;
        while (true){
            list.add(new User("name"+i,i++));
        }
    }
}
